package com.example.api.mapper;

import com.example.api.model.entity.Distribution;
import com.example.api.model.entity.Sale;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface DistributionMapper {
    
    void insert(Distribution distribution);
    
    void update(Distribution distribution);
    
    void deleteById(@Param("id") String id);
    
    Distribution findById(@Param("id") String id);
    
    List<Distribution> findAll();
    
    void updateDriving(@Param("driving") boolean driving, @Param("id") String id);

    List<Distribution> findAllByCarnumberLike(@Param("number") String number);
}
